/*© 2010-2011 mOcean Mobile. A subsidiary of Mojiva, Inc. All Rights Reserved.*/
package com.adserver.adview.examples;

import com.adserver.adview.AdServerException;
import com.adserver.adview.AdServerInterstitialView;

import java.awt.*;
import java.io.IOException;

class AdServerInterstitialViewSample {
    private static final int width = 320;
    private static final int height = 460;

    public static void main(String args[]) throws IOException, AdServerException {
        AdServerInterstitialView adServerInterstitialView = new AdServerInterstitialView("8061", "16112");
        adServerInterstitialView.setAdvertiserId("23DR67");
        adServerInterstitialView.setGroupCode("TR57");
        adServerInterstitialView.setMinSizeX(width);
        adServerInterstitialView.setMinSizeY(height);
        adServerInterstitialView.setMaxSizeX(width);
        adServerInterstitialView.setMaxSizeY(height);
        adServerInterstitialView.setFormDimension(new Dimension(width, height));
        adServerInterstitialView.setAutoCloseInterstitialTime(10);
        adServerInterstitialView.setCloseButtonShowTime(3);
        adServerInterstitialView.setCloseButtonTransparency(200);
        adServerInterstitialView.setCloseButtonText("Close Ads");
        adServerInterstitialView.setCloseButtonBackgroundColor(Color.GREEN);
        adServerInterstitialView.setCloseButtonTextColor(Color.black);
        adServerInterstitialView.setCloseButtonLocation(new Point(width / 3, height / 3));
        adServerInterstitialView.open();
    }
}